﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Model.Platform
{
    /// <summary>
    /// 实时报警通知记录
    /// </summary>
    [Table(Name = "ad_hdl_scada_alarm_real_time_anls")]
    public class HdlScadaAlarmRealTimeAnlsEntity
    {
        /// <summary>
        /// 报警记录ID
        /// </summary>
        public string alarmid { get; set; }

        /// <summary>
        /// 推送消息内容
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 推送失败原因
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 通知方案ID
        /// </summary>
        public string notification { get; set; }

        /// <summary>
        /// 推送状态 0 - 未推送 1 - 推送中 2 - 已推送
        /// </summary>
        public long? status { get; set; }

        [Navigate(nameof(alarmid))]
        public HdlScadaAlarmRealTimeEntity HdlScadaAlarmRealTime { get; set; }
    }
}
